package hydrap2p.download.strategy;

import hydrap2p.download.DownloaderImpl;
import hydrap2p.download.Source;

import org.apache.thrift.TException;

/**
 * The Interface DownloadStrategy.
 */
public interface DownloadStrategy {
	
	/**
	 * Download next chunk.
	 * 
	 * @param downloader the downloader
	 * @param uid the uid
	 * @param source the source
	 * @throws TException the t exception
	 */
	public void downloadNextChunk(DownloaderImpl downloader, final long uid, final Source source) throws TException;
}
